import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class BaseBottomLoadingComponent extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    Color primaryColor = Theme.of(context).primaryColor == Colors.white ? Theme.of(context).textTheme.bodyText2.color : Theme.of(context).primaryColor;
    return Container(
      height: 40.0,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisSize: MainAxisSize.max,
        children: <Widget>[
          SpinKitCircle(color: primaryColor, size: 26.0),
          Padding(
            padding: EdgeInsets.only(left: 16.0),
            child: Text('加载中'),
          )
        ],
      ),
    );
  }

}
